Finding inverse of 2x2 matrices